<template>
  <view class="contain">
    <view class="title">系统消息</view>
    <view v-html="msg.msgContent"></view>
  </view>
</template>


<script setup lang="ts">
import {onLoad} from '@dcloudio/uni-app'
import {ref, onMounted, reactive} from 'vue';
import {getHelpDetail} from '../../common/api/user'
const detail = ref({helpTitle:'',helpContent:''})

const id = ref(0)
const msg = ref({})

onLoad((option)=>{
  id.value = option.id
})

onMounted(async () => {
  // await getHelpDetail(id.value).then(res => {
  //   if (res.code == 200) {
  //     detail.value = res.data
  //     console.log('res:',detail)
  //   }
  // })

  let message = uni.getStorageSync('message');
  msg.value  = JSON.parse(message)
})
</script>

<style  lang="scss" scoped>
.contain{
  margin: 5rpx 8rpx;
  color: #6C6C6C;
  .title{
    margin: 4rpx;
    text-align: left;
    font-size: 36rpx;
    color: #DAA520;
  }
}

</style>
